<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>绿色留言本</title>
<link rel="stylesheet" type="text/css" href="/tpl/green/css.css" />
</head>
<body>
<div id="header">
	<div id="header_inner">
		<h1>我的绿色留言本</h1>
	</div>
</div>
<div id="main">
		<div id="rcontent">
<{foreach from=$results item=one}>
			<h3><{$one.name}>：<span><{$one.title}></span></h3>
			<p><{$one.contents}></p>
<{/foreach}>
			<div class="box">
				<div class="box_inner">	
					<div class="captioned_image">
						<img src="/tpl/green/pic.jpg" alt="Figure 1" />
					</div>
					<h2>请填写您的留言</h2>
					<form action="<{spUrl c=main a=write}>" method=POST>
					<p>您的名字：<input type=text name='name' size=40></p>
					<p>留言标题：<input type=text name='title' size=40></p>
					<p>留言内容：</p>
					<p><textarea name=contents cols=60 rows=6></textarea></p>
					<p><input type=submit value=" 提交 "></p>
					</form>	
				</div>
			</div>
		</div>
  <div id="footer">
<select name="选择模板" onchange="location.href=this.options[this.selectedIndex].value;"><option> 模板选择...</option>
  <option value="/?tpl=green">绿色风格</option><option value="/?tpl=blue">蓝色风格</option><option value="/?tpl=green2">绿色风格2</option><option value="/?tpl=white">白色风格</option></select>
  </div>
</div>
</body>
</html>